<%-- 
    Document   : routeedit
    Created on : Dec 10, 2012, 3:42:27 PM
    Author     : harker777
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Route edition</title>
        <link href="css/header.css" rel="stylesheet" type="text/css" />
        <link href="css/common.css" rel="stylesheet" type="text/css" />
        <link href="css/menu.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <%@include file="header.jsp" %>
        <%@include file="menu.jsp" %>
        
        <div class="maincontent">
            <div class="box" style="padding:5px">
                <form method="POST" id="routeedit" class="entityeditform">
                    <input type="hidden" name="action" value="saveroute" />
                    <input type="hidden" name="id" value="${route.id}" />
                    <table>
                        <tr>
                            <td colspan="2">
                                <h2> Editing route #${route.id}</h2>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Name: 
                            </td>
                            <td>
                                <input type="text" name="name" value="${route.name}" />
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td width="50%">
                                <input type="submit" value="Save" class="button" />
                            </td>
                            <td width="50%">
                                <input type="reset" value="Reset" class="button" />
                            </td>
                        </tr>
                    </table>
                </form>
                <form method="POST">
                    <input type="hidden" name="routeid" value="${route.id}" />
                    <input type="hidden" name="action" value="addstationtoroute" />
                    <input type="submit" value="Add station" class="button" 
                           style="width: 200px;" />
                </form>
            </div>
        </div>
    </body>
</html>
